package com.niit.mall.pay.domain.enums;


import cn.hutool.core.util.StrUtil;
import lombok.Getter;

/**
 * @BelongsProject: pardo_mall_backend
 * @BelongsPackage: com.niit.mall.admin.enums
 * @Author: ChuXuan
 * @CreateTime: 2025-05-25  23:35
 * @Description: 支付通道
 * @Version: 1.0
 */

@Getter
public enum PayChannel {
	wxPay("微信支付"),
	aliPay("支付宝支付"),
	balance("余额支付"),
	;
	
	private final String desc;
	
	PayChannel(String desc) {
		this.desc = desc;
	}
	
	public static String desc(String value){
		if (StrUtil.isBlank(value)) {
			return "";
		}
		return PayChannel.valueOf(value).getDesc();
	}
}
